package com.ruoyi.system.AnsMsg;

import com.rabbitmq.client.Channel;
import org.springframework.amqp.core.Message;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class Sixin {

    @RabbitListener(queues = "deadqueue1")
    public void deadjieshou(Message message, Channel channel){
        System.out.println("死信消息>>>>>>>"+new String(message.getBody()));
    }
}
